#ifndef FAVORITEBOX_H
#define FAVORITEBOX_H

#include <QWidget>
#include <QMouseEvent>
#include <QDesktopServices>
#include <QFileInfo>
#include "AbstractLayer/Database/friendlistlib.h"
namespace Ui {
class FavoriteBox;
}

class FavoriteBox : public QWidget
{
    Q_OBJECT

public:
    explicit FavoriteBox(QWidget *parent = nullptr);
    void setFileName(QString filename);
    void setSenderName(QString sendername);
    void setSendTime(QString time);
    QSize getSize();
    void setFileIcon(QPixmap icon);
    QString getFileName();
    QString getFilePath();
    void setFilePath(QString path);
    void mousePressEvent(QMouseEvent *event) override;
    ~FavoriteBox();

private:
    Ui::FavoriteBox *ui;
    QString filepath;
    QString filename;
    QString useroc;
};

#endif // FAVORITEBOX_H
